import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import './assets/css/global.css'
import "./assets/font/iconfont.css"

import axios from "axios";

axios.defaults.baseURL = "http://localhost:8081/";
// config是请求对象
axios.interceptors.request.use(config => {
  config.headers.token = window.sessionStorage.getItem("token");
  return config;
})
Vue.config.productionTip = false

Vue.prototype.$http = axios

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
